package com.aaa.mrcai.controller;

import com.aaa.mrcai.pojo.vo.CartVO;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author: Lining
 * @ Date: 2021/12/17 19:13
 */
@RestController
@RequestMapping("cart")
public class CartController  {

    @Autowired
    private CartService cartService;

    @RequestMapping("addCart")
    public AjaxResult addCart(CartVO cartVO){

        return cartService.addCart(cartVO);
    }


}
